package d1_innerclass01;

//面试笔试题
public class People {
    //实例变量
    private int heartBeat = 10;

    //成员内部类
    public class heart {
        //内部类的实例变量
        private int heartBeat = 100;

        //实例方法
        public void show() {
            //局部变量
            int heartBeat = 1000;
            System.out.println(heartBeat);//1000
            System.out.println(this.heartBeat);//100
//            System.out.println(new People().heartBeat);//10
            System.out.println(People.this.heartBeat);//10---->但语法记忆吧
        }
    }
}
